# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=py3-compreffor
pkgver=0.5.0
pkgrel=0
pkgdesc="CFF table subroutinizer for FontTools"
url="https://github.com/googlefonts/compreffor"
arch="all"
license="Apache-2.0"
depends="python3 py3-fonttools"
makedepends="py3-setuptools py3-pytest cython python3-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/googlefonts/compreffor/archive/$pkgver.tar.gz"
builddir="$srcdir/compreffor-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	rm -rf "$pkgdir"/usr/lib/python3*/site-packages/compreffor/test
}

sha512sums="52ea65d65424ac3c8d2ae1637b740fec0bb4cc131a5a0f99ccffc6055f10c5a0e0b26fc50f29ed388050eb86f77f7b90f79ac2d46c376de13b997e8b69b3465a  py3-compreffor-0.5.0.tar.gz"
